package cn.pconline.autoclub.util.ubb.node;

import cn.pconline.autoclub.util.ubb.EscapeUtils;
import cn.pconline.autoclub.util.ubb.Node;

/**
 * 提供给审核使用，把字体信息全部去掉
 * @author xhchen
 */
public class FontNode2 extends AbstractNode {

	public FontNode2() {}

	public FontNode2(String name, String attribute) {
		super.name = name;
		super.attribute = attribute;
	}

	@Override
	public StringBuilder getText(java.util.LinkedList<Node> stack) {
		return text;
	}

	@Override
	public void appendText(CharSequence text) {
		EscapeUtils.appendHtml(text, super.text);
	}

	@Override
	public Node copyWithoutText() {
		return new FontNode2(name, attribute);
	}

	@Override
	public Node build(String name, String attribute) {
		return new FontNode2(name, attribute);
	}

}
